function resetDate (time) {
  let d = new Date(time)
  let month = d.getMonth() + 1
  let day = d.getDate()
  if (month < 10) {
    month = '0' + month
  }
  if (day < 10) {
    day = '0' + day
  }
  var youWant = d.getFullYear() + '-' + month + '-' + day
  return youWant
}
module.exports = {
  resetDate: resetDate
}
